window.addEventListener('DOMContentLoaded',function(){
    //if(sessionStorage.loginData != null && sessionStorage.resUrl != null){
    //    //userId = eval( "(" + localStorage.loginData + ")").data.objId;
    //    //userId = "549968e5bc537bb017000a53";
    //}else{
    //    location.href = "/pages/moderatorManager/html/login.html";
    //}

    document.getElementById("post").addEventListener("click",function(){
        location.href = "./post/post.html";
    },false);

    document.getElementById("announcement").addEventListener("click",function(){
        location.href = "./announcement/announcement.html";
    },false);

    //window.addEventListener("pagehide",function(){
    //    return "";
    //},false);
    //window.onbeforeunload = function(){
    //    return "";
    //}
},false);